<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>我的订单</title>
    <jsp:include page="/pages/common/head.jsp"></jsp:include>

    <style type="text/css">
        h1 {
            text-align: center;
            margin-top: 200px;
        }
    </style>
</head>
<body>

<div id="header">
    <span class="wel_word">订单详情</span>
    <c:if test="${sessionScope.user.username == 'admin'}">
        <jsp:include page="/pages/common/manager_menu.jsp"></jsp:include>
    </c:if>
    <c:if test="${sessionScope.user.username != 'admin'}">
        <jsp:include page="/pages/common/login_success_menu.jsp"></jsp:include>
    </c:if>

</div>

<div id="main">

    <table>
        <tr>
            <td>小项id</td>
            <td>小项名</td>
            <td>购买数量</td>
            <td>单价</td>
            <td>总价</td>
        </tr>

        <c:forEach items="${requestScope.orderItemList}" var="orderItem">
            <tr>
                <td>${orderItem.id}</td>
                <td>${orderItem.name}</td>
                <td>${orderItem.count}</td>
                <td>${orderItem.price}</td>
                <td>${orderItem.totalPrice}</td>
            </tr>
        </c:forEach>

    </table>


</div>

<%--静态包含页脚内容--%>
<%@include file="/pages/common/foot.jsp"%>
</body>
</html>